<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="layui-v2.9.6/layui/css/layui.css" />
    <title>基础菜单的使用</title>
</head>

<body>
    <div class="layui-panel" style="width: 260px; margin: 16px;">
        <ul class="layui-menu" id="demo-menu">
            <li lay-options="{id: 100}">
                <div class="layui-menu-body-title"><a href="javascript:;">menu item 1</a></div>
            </li>
            <li lay-options="{id: 101}">
                <div class="layui-menu-body-title">
                    <a href="javascript:;">menu item 2 <span class="layui-badge-dot"></span></a>
                </div>
            </li>
            <li class="layui-menu-item-divider"></li>
            <li class="layui-menu-item-group layui-menu-item-down" lay-options="{type: 'group'}">
                <div class="layui-menu-body-title">
                    menu group <i class="layui-icon layui-icon-up"></i>
                </div>
                <ul>
                    <li lay-options="{id: 103}">
                        <div class="layui-menu-body-title">menu item 3-1</div>
                    </li>
                    <li class="layui-menu-item-group" lay-options="{type: 'group', isAllowSpread: false}">
                        <div class="layui-menu-body-title">menu group 2</div>
                        <ul>
                            <li class="layui-menu-item-checked">
                                <div class="layui-menu-body-title">menu item 3-2-1</div>
                            </li>
                            <li>
                                <div class="layui-menu-body-title">menu item 3-2-2</div>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <div class="layui-menu-body-title">menu item 3-3</div>
                    </li>
                </ul>
            </li>
            <li class="layui-menu-item-divider"></li>
            <li>
                <div class="layui-menu-body-title">menu item 4 <span class="layui-badge">1</span></div>
            </li>
            <li>
                <div class="layui-menu-body-title">menu item 5</div>
            </li>
            <li>
                <div class="layui-menu-body-title">menu item 6</div>
            </li>
            <li class="layui-menu-item-parent" lay-options="{type: 'parent'}">
                <div class="layui-menu-body-title">
                    menu item 7 Children
                    <i class="layui-icon layui-icon-right"></i>
                </div>
                <div class="layui-panel layui-menu-body-panel">
                    <ul>
                        <li class="layui-menu-item-parent" lay-options="{type: 'parent'}">
                            <div class="layui-menu-body-title">
                                menu item 7-1
                                <i class="layui-icon layui-icon-right"></i>
                            </div>
                            <div class="layui-panel layui-menu-body-panel">
                                <ul>
                                    <li>
                                        <div class="layui-menu-body-title">menu item 7-2-1</div>
                                    </li>
                                    <li>
                                        <div class="layui-menu-body-title">menu item 7-2-2</div>
                                    </li>
                                    <li>
                                        <div class="layui-menu-body-title">menu item 7-2-3</div>
                                    </li>
                                    <li>
                                        <div class="layui-menu-body-title">menu item 7-2-4</div>
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <li>
                            <div class="layui-menu-body-title">menu item 7-2</div>
                        </li>
                        <li>
                            <div class="layui-menu-body-title">menu item 7-3</div>
                        </li>
                    </ul>
                </div>
            </li>
            <li>menu item 8</li>
            <li class="layui-menu-item-divider"></li>
            <li class="layui-menu-item-group" lay-options="{type: 'group', isAllowSpread: false}">
                <div class="layui-menu-body-title">menu group 9</div>
                <ul>
                    <li>
                        <div class="layui-menu-body-title">menu item 9-1</div>
                    </li>
                    <li class="layui-menu-item-parent" lay-options="{type: 'parent'}">
                        <div class="layui-menu-body-title">
                            menu item 9-2
                            <i class="layui-icon layui-icon-right"></i>
                        </div>
                        <div class="layui-panel layui-menu-body-panel">
                            <ul>
                                <li>
                                    <div class="layui-menu-body-title">menu item 9-2-1</div>
                                </li>
                                <li>
                                    <div class="layui-menu-body-title">menu item 9-2-2</div>
                                </li>
                                <li>
                                    <div class="layui-menu-body-title">menu item 9-2-3</div>
                                </li>
                            </ul>
                        </div>
                    </li>
                    <li>
                        <div class="layui-menu-body-title">menu item 9-31</div>
                    </li>
                </ul>
            </li>
            <li class="layui-menu-item-divider"></li>
            <li>
                <div class="layui-menu-body-title">menu item 10</div>
            </li>
        </ul>
    </div>
    <script src="layui-v2.9.6/layui/layui.js" type="text/javascript" charset="utf-8"></script>
</body>

</html>